<h1>Results</h1>
<br>
<?if (!empty($results)):?>
	<table border="1">
	  <thead>
		<tr>
		  <th>IMDB Id</th>
		  <th>Name</th>
		  <th>Year</th>		  
		</tr>
	  </thead>
	  <tbody>
		<?php foreach ($results as $movie): ?>
		<tr>
		  <td><a href="<?php echo url_for('movie/create?imdbid='.$movie->imdbid()) ?>"><?php echo $movie->imdbid() ?></a></td>
		  <td><?php echo $movie->title() ?></td>
		  <td><?php echo $movie->year() ?></td>		  
		</tr>
		<?php endforeach; ?>
	  </tbody>
	</table>
<?php else:?>
    <h1>Not found</h1>
<?php endif;?>